<?php defined('_JEXEC') or die('Restricted access'); ?>


<form action="index.php?option=com_paliwa" method="post" name="adminForm">
<div id="pdf_naglowek"> Paliwa - zestaw zbiorczy </div>
	<table class="adminlist" cellpadding="1">
		<thead>
			<tr>
				<th width="2%" class="title">
					lp
				</th>
				<th width="15%" class="title">
					Marka i model
				</th>
				<th width="10%" class="title">
					Numer rejestracyjny
				</th>
				<th class="title">
					Użytkujący/Obiekt
				</th>
				<th class="title">
					Właściciel
				</th>
				<th class="title">
					Miesiąc
				</th>
				<th width="5%" class="title">
					Stan licznika
				</th>
				<th width="8%" class="title">
					Ilość ON
				</th>
				<th width="8%" class="title">
					Kwota ON
				</th>
				<th width="8%" class="title">
					Ilość PB
				</th>
				<th width="8%" class="title">
					Kwota PB
				</th>
				<th width="8%" class="title">
					Ilość LPG
				</th>
				<th width="8%" class="title">
					Kwota LPG
				</th>
			</tr>
		</thead>
		<tbody>
		<?php
			$k = 0;
			for ($i=0, $n=count( $this->items ); $i < $n; $i++)
			{
				$row 	=& $this->items[$i];
				
				$link 	= 'index.php?option=com_paliwa&amp;task=detals&amp;cid[]='. $row->gid. '';
		?>
			<tr class="<?php echo "row$k"; ?>">
				<td>
					<?php echo $i+1+$this->pagination->limitstart;?>
				</td>
				<td>
					<?php echo $row->poj2; ?>
				</td>
				<td>
					<?php echo $row->nrr; ?>	
				</td>
				<td>
					<?php echo $row->uz; ?>
				</td>
				<td>
					<?php echo $row->pwl6; ?>
				</td>
				<td>
					<?php echo $row->mies; ?>
				</td>
				<td>
					<?php echo $row->przebieg; ?>
				</td>
				<td>
					<?php echo $row->ilosc_on; ?>
				</td>
				<td>
					<?php echo $row->kwota_on; ?>
				</td>
				<td>
					<?php echo $row->ilosc_pb; ?>
				</td>
				<td>
					<?php echo $row->kwota_pb; ?>
				</td>
				<td>
					<?php echo $row->ilosc_lpg; ?>
				</td>
				<td>
					<?php echo $row->kwota_lpg; ?>
				</td>
			</tr>
			<?php
				$k = 1 - $k;
				}
			?>
		</tbody>
	</table>

	<input type="hidden" name="option" value="com_paliwa" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
</form>